package com.eason.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 扫描远程调用接口；当服务启动的时候就会自动扫描feign包下的所有标记了FeignClient注解的接口
 * 每一个接口又说明了调用哪个服务的哪个方法
 */
@EnableFeignClients(basePackages = "com.eason.gulimall.member.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
